/*
 * Copyright (c) 2013-2014, thinkjoy Inc. All Rights Reserved.
 *
 * Project Name: wy
 * $Id:  UserInfo.java 2016-02-02 11:50:47 $
 */



package com.wy.domain;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.wy.common.domain.BaseDomain;

import java.util.*;

public class UserInfo extends BaseDomain{
    private String name;
    private String icon;
    private String sex;
    private String typeId;
    private String cityId;
    private String industryCode;

	public UserInfo(){
	}
    public void setName(String value) {
        this.name = value;
    }

    public String getName() {
        return this.name;
    }
    public void setIcon(String value) {
        this.icon = value;
    }

    public String getIcon() {
        return this.icon;
    }
    public void setSex(String value) {
        this.sex = value;
    }

    public String getSex() {
        return this.sex;
    }
    public void setTypeId(String value) {
        this.typeId = value;
    }

    public String getTypeId() {
        return this.typeId;
    }
    public void setCityId(String value) {
        this.cityId = value;
    }

    public String getCityId() {
        return this.cityId;
    }
    public void setIndustryCode(String value) {
        this.industryCode = value;
    }

    public String getIndustryCode() {
        return this.industryCode;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Name",getName())
			.append("Icon",getIcon())
			.append("Sex",getSex())
			.append("TypeId",getTypeId())
			.append("CityId",getCityId())
			.append("IndustryCode",getIndustryCode())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof UserInfo == false) return false;
		if(this == obj) return true;
		UserInfo other = (UserInfo)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

